package com.spring.springmvc.计算器;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("calc")
@RestController
public class calc {
    @RequestMapping("sum")
    public String add(int num1,int num2){
        int sum = num1+num2;
        return "计算的结果："+sum;
    }
}
